﻿<UserControl x:Class="PhotoKiosk.View.PhotosSelectView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:PhotoKiosk.ViewModel"
             xmlns:vw="clr-namespace:PhotoKiosk.View"
             xmlns:resx="clr-namespace:PhotoKiosk.Properties"
             mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="1366">
    <UserControl.Resources>
        <DataTemplate x:Key="PhotoSectionViewModel">
            <vw:PhotoSectionView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type vm:PhotoSectionViewModel}">
            <vw:PhotoSectionView />
        </DataTemplate>
    </UserControl.Resources>
    <DockPanel>
        <Grid DockPanel.Dock="Bottom" Height="80" Background="#22000000" Margin="0,10,0,0">
            <Button Width="150" Command="{Binding PreviousPageCommand}" Margin="0,10,600,10" Background="#DD1F781B">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Image Source="Images/Previous.png"/>
                    <Label Content="{x:Static resx:Resources.Previous}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20"/>
                </StackPanel>
            </Button>
            <Button Width="150" Command="{Binding NextPageCommand}" Margin="0,10,-600,10" Background="#DD1F781B">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Label Content="{x:Static resx:Resources.Next}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20"/>
                    <Image Source="Images/Next.png"/>
                </StackPanel>
            </Button>
            <Button Command="{Binding FinishCommand}" Margin="0,0,10,10" Background="#FF4C7D99" Height="60" Width="180" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                <StackPanel Orientation="Horizontal">
                    <Label Content="{x:Static resx:Resources.Finish}"  HorizontalContentAlignment="Center" VerticalAlignment="Center" FontSize="30"/>
                    <Image Source="Images/Next.png" Height="50" />
                </StackPanel>
            </Button>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Background="#22000000" Margin="10,0,0,0">
                <Label Content="{x:Static resx:Resources.CurrentPrice}" Foreground="White" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
                <Label Content="{Binding Price}" Width="80" Foreground="White" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center" Background="#22000000">
                <Label Content="{x:Static resx:Resources.Page}" Foreground="White" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
                <Label Content="{Binding CurrentPageView}" Width="50" Foreground="White" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
                <Label Content="/"  Foreground="White" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
                <Label Content="{Binding MaxPageView}" Width="50" Foreground="White" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
            </StackPanel>
        </Grid>
        <Grid Margin="0,10,0,0" >
            <ItemsControl ItemsSource="{Binding ViewPhotos}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <UniformGrid Columns="5" Rows="2" Width="Auto" Height="Auto"/>
                  
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
            </ItemsControl>
        </Grid>
    </DockPanel>
</UserControl>
